<div class="wrap">
	<div class="struct">
		<div class="frame">
			<a href="<?php echo $this->baseUrl()."/sanpham/xem/{$this->id}.html"?>" class="image"><img src="<?php echo $this->baseUrl().'/public/template/default/'?>os/grid3.jpg"
				alt="<?php echo $this->ten_san_pham;?>"></a>
			<div class="name">
				<a href="<?php echo $this->baseUrl()."/sanpham/xem/{$this->id}.html"?>"><?php echo $this->ten_san_pham;?></a>
			</div>
			
			<div class="price">$<?php echo $this->gia_ban;?></div>
			<div class="buttons">
				<button href="#" value='<?php echo $this->id; ?>' name='#' class="button buy">Add to cart</button> 
				<?php 
				    $session = new Zend_Session_Namespace('customers');
				    if(isset($session->u) and isset($session->like) and !empty($session->like) and in_array($this->id, $session->like)):
				?>
				    <a class="button-icon icon-wish tftooltip like" style ="background-color:#f2498f" value='<?php echo $this->id; ?>' title="Ưa thích"></a> 
				<?php 
				    else :
				?>
				    <a class="button-icon icon-wish tftooltip" style ="" value='<?php echo $this->id; ?>' title="Ưa thích"></a>     
				<?php
				    endif;
				?>
				
					<a
					href="#" class="button-icon icon-compare tftooltip" title="So sánh"></a>
			</div>
		</div>
	</div>
</div>